package com.itfenxiang.tools.captcha.controller;

import com.itfenxiang.tools.captcha.service.SysCaptchaService;
import com.itfenxiang.tools.captcha.vo.SysCaptchaVO;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author: 墨凡
 * @date: 2024/4/30 12:33
 * @version: 1.0
 */
@RestController
@RequestMapping("captcha")
@AllArgsConstructor
public class EasyCaptchaController {

    private final SysCaptchaService captchaService;

    @GetMapping()
    public SysCaptchaVO getCaptcha() {
        return captchaService.generate();
    }

}
